<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<table class="tablelist">
    	<thead>
    	<tr>
        <th>用户ID<i class="sort"><img src="http://127.0.0.1/vancl_php/Application/Admin/View/images/px.gif" /></i></th>
        <th>用户名</th>
        <th>性别</th>
        <th>余额</th>
        <th>最后登陆时间</th>
        <th>最后登陆IP</th>
        <th>注册时间</th>
        <th>状态</th>
        <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <?php foreach ($users as $key=>$val){?>
        <tr>
        <td><?php echo $val['uid'];?></td>
        <td><a href=""><?php echo $val['username'];?></a></td>
        <td><?php echo $val['sex'];?></td>
        <td><?php echo $val['user_money'];?></td>
        <td><?php echo date('Y-m-d H:i:s',$val['last_login_time']);?></td>
        <td><?php echo $val['last_login_ip'];?></td>
        <td><?php echo date('Y-m-d H:i:s',($val['reg_time']));?></td>
        <td>    <?php if($val['is_lock']==1){ ?>锁定<?php }else{ ?>正常<?php } ?></td>
        <td><a href="<?php echo U('ReceivAddr/receivAddr',array('uid'=>$val['uid'],'username'=>$val['username']));?>">收货地址</a>
        	    <?php if($val['is_lock']==0){ ?><a href="<?php echo U('User/userLock',array('uid'=>$val['uid'],'lock'=>1));?>" class="tablelink">锁定</a>
        		<?php }else{ ?><a href="http://127.0.0.1/vancl_php/index.php/Admin/Search/userLock/uid/<?php echo $val['uid'];?>/lock/0" class="tablelink">解锁</a><?php } ?> 
        		<a href="<?php echo U('User/delUser',array('uid'=>$val['uid']));?>" class="tablelink">删除</a> 
        		<a href="<?php echo U('User/editUser',array('uid'=>$val['uid']));?>" class="tablelink">修改</a></td>
        </tr>
        <?php }?>
        
         
        </tbody>
    </table>